package o;

import android.os.Bundle;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.savedstate.Recreator;
import o.kp.c;

public final class na {
    private final mr ˊ = new mr();
    private final my ˏ;

    private na(my myVar) {
        this.ˏ = myVar;
    }

    @NonNull
    public mr ˏ() {
        return this.ˊ;
    }

    @MainThread
    public void ˏ(@Nullable Bundle bundle) {
        kp ac_ = this.ˏ.ac_();
        if (ac_.ˋ() != c.INITIALIZED) {
            throw new IllegalStateException("Restarter must be created only during owner's initialization stage");
        }
        ac_.ॱ(new Recreator(this.ˏ));
        this.ˊ.ॱ(ac_, bundle);
    }

    @MainThread
    public void ˎ(@NonNull Bundle bundle) {
        this.ˊ.ˎ(bundle);
    }

    @NonNull
    public static na ॱ(@NonNull my myVar) {
        return new na(myVar);
    }
}
